﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;

namespace BPM.Web
{
	public static class RouteDataExtension
	{
		public static string GetControllerName(this RouteData routedData)
		{
			return routedData.GetRequiredString("controller");
		}

		public static string GetActionName(this RouteData routedData)
		{
			return routedData.GetRequiredString("action");
		}
	}
}